<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Chatu.ControlLider.Web.Models.Domain.EmployeeLaborDay>>" %>
<% string reportName = ViewData["ReportName"].ToString(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Lider : Reporte de <%= reportName %></title>
    <style type="text/css">
        #header { text-align: center; padding-left: 200px; margin-top: -68px; }
        h2 { margin: 12px; }
        @media screen { #bntPrint { position: absolute; top: 10px; right: 10px; width: 80px; } }
        @media print { #bntPrint { display: none; } }
    </style>
</head>
<body>
    <input type="button" value="Imprimir" id="bntPrint" onclick="window.print(); return false;" />
    <img src="<%= Links.Assets.Images.logoClean_png %>" alt="Lider" />
    <div id="header">
        <h2>Reporte de <%= reportName %></h2>
        <h2><%= ViewData["CurrentDate"] %></h2>
    </div>
    <table style="width:100%">
        <tr>
            <th style="width:100px">
                Cedula
            </th>
            <td style="min-width:170px">
                <b>Nombre Completo</b>
            </td>
            <td>
                <b>Entrada</b>
            </td>
            <td>
                <b>Salida</b>
            </td>
            <th style="width:100px">
                <%= reportName %>
            </th>
        </tr>
    <%--<% for (var i = 0; i < Model.Count(); ++i ) {
        var item = Model.ElementAt(i); %>  --%>
    <% foreach (var item in Model) { %>
        <tr>
            <td style="text-align:center">
                <%= Html.Encode(item.Cedula) %>
            </td>
            <td>
                <%= Html.Encode(item.FullName) %>
            </td>
            <td>
                <%= item.LaborData.InDate.Value.ToFullDateTimeSpanish() %>
            </td>
            <td>
                <%= item.LaborData.OutDate.Value.ToFullDateTimeSpanish() %>
            </td>
            <td style="text-align:center">
                <%= item.LaborData.ValueToReport(reportName) %>
            </td>
        </tr>
    <% } %>
    </table>
</body>
</html>